﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VRacer.Packets
{
    public abstract class PlayerPacket : PacketBase
    {
        protected int _id;

        public PlayerPacket(PacketType type)
            : base(type)
        {
            this.Length += 4;
        }

        public PlayerPacket(PacketType type, PlayerBase player)
            : this(type)
        {
            ID = player.ID;
        }

        public int ID
        {
            get { return _id; }
            set { _id = value; }
        }
    }
}
